package edu.sctu.wangxiaoqiang.day20150515.textone;

/**
 * Created by user25 on 2015/5/15.
 */
public class PracticeMain {


        private static int a = 10;
        public static  class Inner{
            int a = 12;
            public  void head(){
                System.out.println("这是外部类静态变量值："+PracticeMain.a);
                System.out.println("这是内部类静态变量值："+a);
            }
        }

        private int q = 33;
        public class Inner1{
            int q = 44;
            public void get(){
                System.out.println("这是外部类变量值："+PracticeMain.this.q);
                System.out.println("这是外部类变量值："+q);

            }

        }
        public static void main(String[] args) {

            Inner i = new Inner();
            i.head();

            PracticeMain practiceMain = new PracticeMain();
            Inner1 in = practiceMain.new Inner1();
            in.get();
        }
    }


